package com.wh.shiroswagger.result;

/**
 * @Auther: HuiEr
 * @Date: 2020/3/5 21:15
 * @Description
 */
public enum ResponseCodeMsg implements AbstractResponse {
    SUCCESS(0,"操作成功")
    ,USERNAME_UNKONWED(-1,"用户名不正确")
    ,PASSWORD_INCORRECT(-2,"密码错误")
    ,SYSTEM_EXCEPTION(-3,"系统异常")
    ,TOKEN_NOTFOUND(-4,"服务器没有找到该token")
    ,TOKEN_NULL(-5,"客户端没有携带token");
     ResponseCodeMsg(int code,String msg){
        this.code=code;
        this.msg=msg;
    }
    private int code;
    private String msg;
    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
